<!DOCTYPE html>
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script type="text/javascript" src="../libs/jquery-1.4.4.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			var useMessaging = true;

            if (useMessaging) {
                window.addEventListener("message", messageReceived, false);
            }

            function messageReceived(message){
                if(message.data == "childResult"){
					console.log("Cool");
                }
            }
		});
		function updateText()
		{
			window.frames["myFrame"].postMessage("YEAH!", "*");
		}
	</script>
  </head>
  <body>
	  <a onclick="updateText();">TEST</a>
	  <iframe id="myFrame" name="myFrame" src="http://med.hro.nl/goomi/mwm04_2010/les2_backend/ExternDocument.htm?mes=1"></iframe>
  </body>
</html>
